package common.nums;

public class Person {
    private String name;
    private nameType type;
    private int age;

    public Person(String name, nameType type, int age) {
        this.name = name;
        this.type = type;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public nameType getType() {
        return type;
    }

    public void setType(nameType type) {
        this.type = type;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String toString() {
        return "姓名：" + name + "，类型：" + type + "，年龄：" + age;
    }
}
